# vim:set noet ts=4:
#
# scim-python
#
# Copyright (c) 2007-2008 Yu Yuwei <acevery@gmail.com>
#
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA
#
# $Id: $
#
SUBDIRS = tables

if ENABLE_XINGMA

xingma_PYTHON =   \
	XingMa.py     \
	XMSQLiteDB.py \
	XMDict.py     \
	__init__.py   \
	$(NULL)

xingma_SCRIPTS =  \
	XMCreateDB.py \
	$(NULL)

xingmadir = $(pkgdatadir)/engine/XingMa

EXTRA_DIST = README XMCreateDB.py
DISTCLEANFILES = \
	*.pyc

install-data-hook:
	( \
	mkdir -p $(DESTDIR)$(bindir); \
	cd $(DESTDIR)$(bindir); \
	ln -sf $(pkgdatadir)/engine/XingMa/XMCreateDB.py XMCreateDB; \
	)
uninstall-hook:
	( \
	cd $(DESTDIR)$(bindir); \
	rm -rf XMCreateDB; \
	)
endif
